#ifndef TORRENTPEERDATA_H
#define TORRENTPEERDATA_H
#include <QHostAddress>
#include <QBitArray>

class TorrentPeerData
{
public:
    TorrentPeerData(QHostAddress _ip, quint16 _port, QString _peerId, int piecesNumber );
    bool hasPiece(int pieceIndex);

public: //data
    QHostAddress ipAddress;
    quint16 port;
    QString peerId;
    bool amInterested; //we are interested in that peer
    bool amChoking;   //we are chocking that peer
    bool peerInterested; //this peer is interested in us
    bool peerChoking; //this peer is choking us
    QBitArray piecesOwned;


};

#endif // TORRENTPEERDATA_H
